import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import HomeView from "../views/HomeView.vue";
import UserLogin from "../views/UserLogin.vue";
import HomeWorld from "../components/HelloWorld.vue";
// import Basic from "../layouts/BasicLayout.vue";

export const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "main",
    component: HomeWorld,
  },
  {
    path: "/home",
    name: "home",
    component: HomeView,
  },
  // {
  // //   path: "/basic",
  // //   name: "basic",
  // //   component: Basic,
  // // },

  {
    path: "/about",
    name: "about",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/AboutView.vue"),
  },
  {
    path: "/login",
    name: "login",
    component: UserLogin,
  },
];
